package com.usian.article.fegin;

import com.usian.model.behavior.dtos.FindlikeDto;
import com.usian.model.behavior.dtos.FindunlikeDto;
import com.usian.model.behavior.pojos.ApBehaviorEntry;
import com.usian.model.behavior.pojos.ApLikesBehavior;
import com.usian.model.behavior.pojos.ApUnlikesBehavior;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;

@FeignClient("leadnews-behavior")
public interface BehaviorFegin {

    @GetMapping("/ApBehaviorEntry/findByUserIdOrEquipmentId/{userId}")
    ApBehaviorEntry findByUserIdOrEquipmentId(@PathVariable("userId") Integer userId);
    @PostMapping("/un_likes_behavior/one")
    ApUnlikesBehavior findUnLikeByArticleIdAndEntryId(FindunlikeDto dto);

    @PostMapping("/likes_behavior/one")
    ApLikesBehavior findLikeByArticleIdAndEntryId(FindlikeDto dto);
}
